< ! D O C T Y P E   H T M L   P U B L I C   " - / / W 3 C / / D T D   H T M L   4 . 0   T r a n s i t i o n a l / / E N "   > 
 
 < h t m l > 
 
 < h e a d > 
 
 < m e t a   h t t p - e q u i v = " c o n t e n t - t y p e "   c o n t e n t = " t e x t / h t m l ;   c h a r s e t = i s o - 8 8 5 9 - 9 " > 
 
 < m e t a   n a m e = " a u t h o r "   c o n t e n t = " k a r a y e l " > 
 
 < m e t a   n a m e = " k e y w o r d s "   c o n t e n t = " F l a t c a s t ,   i n d e x ,   t e m a ,   f c p ,   r a d y o " > 
 
 < m e t a   n a m e = " g e n e r a t o r "   c o n t e n t = " W e b   P a g e   M a k e r   V 2 " > 
 
 < t i t l e > F u l - D a m a r - c i l a r < / t i t l e > 
 
 < / h e a d > 
 
 
 
 < s t y l e   t y p e = " t e x t / c s s " > 
 
 / * - - - - - - - - - - T e x t   S t y l e s - - - - - - - - - - * / 
 
 . w s 6   { f o n t - s i z e :   8 p x ; } 
 
 . w s 7   { f o n t - s i z e :   9 . 3 p x ; } 
 
 . w s 8   { f o n t - s i z e :   1 1 p x ; } 
 
 . w s 9   { f o n t - s i z e :   1 2 p x ; } 
 
 . w s 1 0   { f o n t - s i z e :   1 3 p x ; } 
 
 . w s 1 1   { f o n t - s i z e :   1 5 p x ; } 
 
 . w s 1 2   { f o n t - s i z e :   1 6 p x ; } 
 
 . w s 1 4   { f o n t - s i z e :   1 9 p x ; } 
 
 . w s 1 6   { f o n t - s i z e :   2 1 p x ; } 
 
 . w s 1 8   { f o n t - s i z e :   2 4 p x ; } 
 
 . w s 2 0   { f o n t - s i z e :   2 7 p x ; } 
 
 . w s 2 2   { f o n t - s i z e :   2 9 p x ; } 
 
 . w s 2 4   { f o n t - s i z e :   3 2 p x ; } 
 
 . w s 2 6   { f o n t - s i z e :   3 5 p x ; } 
 
 . w s 2 8   { f o n t - s i z e :   3 7 p x ; } 
 
 . w s 3 6   { f o n t - s i z e :   4 8 p x ; } 
 
 . w s 4 8   { f o n t - s i z e :   6 4 p x ; } 
 
 . w s 7 2   { f o n t - s i z e :   9 6 p x ; } 
 
 . w p m d   { f o n t - s i z e :   1 3 p x ; f o n t - f a m i l y :   ' A r i a l ' ; f o n t - s t y l e :   n o r m a l ; f o n t - w e i g h t :   n o r m a l ; } 
 
 / * - - - - - - - - - - P a r a   S t y l e s - - - - - - - - - - * / 
 
 D I V , U L , O L   / *   L e f t   * / 
 
 { 
 
   m a r g i n - t o p :   0 p x ; 
 
   m a r g i n - b o t t o m :   0 p x ; 
 
 } 
 
 < / s t y l e > 
 
 
 
 < s t y l e   t y p e = " t e x t / c s s " > 
 
 d i v # c o n t a i n e r 
 
 { 
 
 	 p o s i t i o n : r e l a t i v e ; 
 
 	 w i d t h :   1 0 2 4 p x ; 
 
 	 m a r g i n - t o p :   0 p x ; 
 
 	 m a r g i n - l e f t :   a u t o ; 
 
 	 m a r g i n - r i g h t :   a u t o ; 
 
 	 t e x t - a l i g n : l e f t ;   
 
 } 
 
 b o d y   { t e x t - a l i g n : c e n t e r ; m a r g i n : 0 } 
 
 < / s t y l e > 
 
 
 
 < b o d y   b g C o l o r = " # 0 0 0 0 0 0 " > 
 
 
 
 < d i v   i d = " c o n t a i n e r " > 
 
 < d i v   i d = " i m a g e 1 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 0 p x ;   t o p : 0 p x ;   w i d t h : 1 0 2 4 p x ;   h e i g h t : 7 4 0 p x ;   z - i n d e x : 0 " > < i m g   s r c = " h t t p : / / i m g 4 0 5 . i m a g e s h a c k . u s / i m g 4 0 5 / 1 7 / f l d m r f m 2 . j p g "   b o r d e r = 0   w i d t h = 1 0 2 4   h e i g h t = 7 4 0 > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 3 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 3 6 9 p x ;   t o p : 7 2 5 p x ;   w i d t h : 1 1 0 p x ;   h e i g h t : 2 4 p x ;   z - i n d e x : 1 " > < a   h r e f = " h t t p : / / w w w . f l a t c a s t d e s t e k . o r g / i n d e x / e v i l / g r i s i y a h / n i c k a l / n i c k a l . h t m l " > < i m g   s r c = " h t t p : / / i m g 1 5 5 . i m a g e s h a c k . u s / i m g 1 5 5 / 9 7 9 4 / 2 n i k . g i f "   b o r d e r = 0   w i d t h = 1 1 0   h e i g h t = 2 4 > < / a > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 2 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 1 4 4 p x ;   t o p : 7 2 5 p x ;   w i d t h : 1 4 6 p x ;   h e i g h t : 3 0 p x ;   z - i n d e x : 2 " > < a   h r e f = " h t t p : / / w w w . f l a t c a s t . c o m / d e / W i z T a k e O v e r . a s p x ? n e w = - 1 " > < i m g   s r c = " h t t p : / / i m g 8 2 0 . i m a g e s h a c k . u s / i m g 8 2 0 / 8 7 3 4 / 1 y a y i n . g i f "   b o r d e r = 0   w i d t h = 1 4 6   h e i g h t = 3 0 > < / a > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 4 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 5 5 4 p x ;   t o p : 7 2 5 p x ;   w i d t h : 1 2 5 p x ;   h e i g h t : 2 4 p x ;   z - i n d e x : 3 " > < a   h r e f = " h t t p : / / 9 2 . 5 1 . 1 3 7 . 9 4 / o b j e c t s / F l a t V i e w e r S e t u p 5 2 2 . e x e " > < i m g   s r c = " h t t p : / / i m g 5 4 1 . i m a g e s h a c k . u s / i m g 5 4 1 / 6 5 4 3 / 3 a k t i v e . g i f "   b o r d e r = 0   w i d t h = 1 2 5   h e i g h t = 2 4 > < / a > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 5 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 7 5 5 p x ;   t o p : 7 2 5 p x ;   w i d t h : 1 0 1 p x ;   h e i g h t : 2 3 p x ;   z - i n d e x : 4 " > < a   h r e f = " h t t p : / / w w w . a l l a t u r k a a . d e / f o r u m / " > < i m g   s r c = " h t t p : / / i m g 2 1 4 . i m a g e s h a c k . u s / i m g 2 1 4 / 6 4 5 8 / 4 f o r u m . g i f "   b o r d e r = 0   w i d t h = 1 0 1   h e i g h t = 2 3 > < / a > < / d i v > 
 
 
 
 < d i v   i d = " h t m l 1 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 1 1 3 p x ;   t o p : 7 9 5 p x ;   w i d t h : 8 0 0 p x ;   h e i g h t : 6 0 0 p x ;   z - i n d e x : 5 " > 
 
 < i f r a m e   n a m e = " i F r a m e 1 "   w i d t h = " 8 0 0 "   h e i g h t = " 6 0 0 "   s r c = " h t t p : / / w w w . f l a t c a s t . c o m / d e / P l a y e r . a s p x ? s i d = 1 1 2 2 8 3 3 "   s c r o l l i n g = " n o "   f r a m e b o r d e r = " 0 " > < / i f r a m e > < / d i v > 
 
 
 
 < d i v   i d = " s h a p e 1 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 1 0 7 p x ;   t o p : 7 8 9 p x ;   w i d t h : 8 1 2 p x ;   h e i g h t : 6 1 2 p x ;   z - i n d e x : 6 ;   b o r d e r : # 8 0 8 0 8 0   3 p x   s o l i d " > & n b s p ; < / d i v > 
 
 
 
 < d i v   i d = " h t m l 2 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 1 1 3 p x ;   t o p : 1 4 1 2 p x ;   w i d t h : 8 0 0 p x ;   h e i g h t : 6 0 0 p x ;   z - i n d e x : 7 " > 
 
 < e m b e d   s r c = h t t p : / / w w w . f o r u m t a y f a . c o m / f l a s h o y u n / B u b b l e S h o o t e r S t e . s w f   w i d t h = 8 0 0   h e i g h t = 6 0 0   t y p e = a p p l i c a t i o n / x - s h o c k w a v e - f l a s h > < / e m b e d > 
 
 < / d i v > 
 
 
 
 < d i v   i d = " s h a p e 2 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 1 0 7 p x ;   t o p : 1 4 0 6 p x ;   w i d t h : 8 1 2 p x ;   h e i g h t : 6 1 2 p x ;   z - i n d e x : 8 ;   b o r d e r : # 8 0 8 0 8 0   3 p x   s o l i d " > & n b s p ; < / d i v > 
 
 
 
 < d i v   i d = " h t m l 3 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 2 4 p x ;   t o p : 2 0 2 7 p x ;   w i d t h : 9 8 0 p x ;   h e i g h t : 4 7 3 p x ;   z - i n d e x : 9 " > 
 
 < e m b e d   p l u g i n s p a g e = " h t t p : / / w w w . m a c r o m e d i a . c o m / g o / g e t f l a s h p l a y e r " s r c = " h t t p : / / w w w . t u r k e y r a n k . c o m / i m a g e s / A k v a r y u m _ T u r k e y R a n k . c o m . s w f "   w i d t h = " 9 8 0 "   h e i g h t = " 5 2 0 "   s c a l e = " S h o w A l l "   l o o p = " l o o p "   m e n u = " m e n u "   w m o d e = " W i n d o w "   q u a l i t y = " h i g h " t y p e = " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h " > < / e m b e d > 
 
 < / d i v > 
 
 
 
 < d i v   i d = " s h a p e 3 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 2 1 p x ;   t o p : 2 0 2 4 p x ;   w i d t h : 9 8 6 p x ;   h e i g h t : 4 7 9 p x ;   z - i n d e x : 1 0 ;   b o r d e r : # 8 0 8 0 8 0   3 p x   s o l i d " > & n b s p ; < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 6 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 3 6 4 p x ;   t o p : 2 5 1 1 p x ;   w i d t h : 3 5 0 p x ;   h e i g h t : 4 1 6 p x ;   z - i n d e x : 1 1 " > < i m g   s r c = " h t t p : / / i m g 2 7 . i m a g e s h a c k . u s / i m g 2 7 / 1 7 4 0 / f i l 0 4 0 9 9 . p n g "   b o r d e r = 0   w i d t h = 3 5 0   h e i g h t = 4 1 6 > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 7 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 6 7 4 p x ;   t o p : 3 5 8 p x ;   w i d t h : 1 6 9 p x ;   h e i g h t : 1 6 9 p x ;   z - i n d e x : 1 2 " > < i m g   s r c = " h t t p : / / i m g 8 2 2 . i m a g e s h a c k . u s / i m g 8 2 2 / 5 8 6 / 1 8 2 9 b a y r a k . g i f "   b o r d e r = 0   w i d t h = 1 6 9   h e i g h t = 1 6 9 > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 8 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 1 5 1 p x ;   t o p : 3 5 8 p x ;   w i d t h : 1 6 9 p x ;   h e i g h t : 1 6 9 p x ;   z - i n d e x : 1 3 " > < i m g   s r c = " h t t p : / / i m g 2 5 1 . i m a g e s h a c k . u s / i m g 2 5 1 / 2 2 8 / o c u k 2 1 . g i f "   b o r d e r = 0   w i d t h = 1 6 9   h e i g h t = 1 6 9 > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 9 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 4 1 6 p x ;   t o p : 4 0 6 p x ;   w i d t h : 1 6 5 p x ;   h e i g h t : 5 9 p x ;   z - i n d e x : 1 4 " > < i m g   s r c = " h t t p : / / i m g 8 4 1 . i m a g e s h a c k . u s / i m g 8 4 1 / 3 1 2 5 / b a y r a k g i f 5 . g i f "   b o r d e r = 0   w i d t h = 1 6 5   h e i g h t = 5 9 > < / d i v > 
 
 
 
 < d i v   i d = " i m a g e 1 0 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 2 3 3 p x ;   t o p : 1 9 6 p x ;   w i d t h : 5 5 6 p x ;   h e i g h t : 3 9 p x ;   z - i n d e x : 1 5 " > < i m g   s r c = " h t t p : / / i m g 8 3 3 . i m a g e s h a c k . u s / i m g 8 3 3 / 2 6 2 / f u l d m r . g i f "   b o r d e r = 0   w i d t h = 5 5 6   h e i g h t = 3 9 > < / d i v > 
 
 
 
 < d i v   i d = " a d o t 0 "   s t y l e = " p o s i t i o n :   a b s o l u t e ; v i s i b i l i t y :   h i d d e n ; " > < i m g   s r c = " h t t p : / / i m g 2 2 8 . i m a g e s h a c k . u s / i m g 2 2 8 / 7 8 9 9 / t r 5 . p n g " > < / d i v > 
 
 < d i v   i d = " a d o t 1 "   s t y l e = " p o s i t i o n :   a b s o l u t e ; " > < i m g   s r c = " h t t p : / / i m g 2 2 8 . i m a g e s h a c k . u s / i m g 2 2 8 / 7 8 9 9 / t r 5 . p n g " > < / d i v > 
 
 < d i v   i d = " a d o t 2 "   s t y l e = " p o s i t i o n :   a b s o l u t e ; " > < i m g   s r c = " h t t p : / / i m g 2 2 8 . i m a g e s h a c k . u s / i m g 2 2 8 / 7 8 9 9 / t r 5 . p n g " > < / d i v > 
 
 < d i v   i d = " a d o t 3 "   s t y l e = " p o s i t i o n :   a b s o l u t e ; " > < i m g   s r c = " h t t p : / / i m g 2 2 8 . i m a g e s h a c k . u s / i m g 2 2 8 / 7 8 9 9 / t r 5 . p n g " > < / d i v > 
 
 < d i v   i d = " a d o t 4 "   s t y l e = " p o s i t i o n :   a b s o l u t e ; " > < i m g   s r c = " h t t p : / / i m g 2 2 8 . i m a g e s h a c k . u s / i m g 2 2 8 / 7 8 9 9 / t r 5 . p n g " > < / d i v > 
 
 < d i v   i d = " a d o t 5 "   s t y l e = " p o s i t i o n :   a b s o l u t e ; " > < i m g   s r c = " h t t p : / / i m g 2 2 8 . i m a g e s h a c k . u s / i m g 2 2 8 / 7 8 9 9 / t r 5 . p n g " > < / d i v > 
 
 < d i v   i d = " a d o t 6 "   s t y l e = " p o s i t i o n :   a b s o l u t e ; " > < i m g   s r c = " h t t p : / / i m g 2 2 8 . i m a g e s h a c k . u s / i m g 2 2 8 / 7 8 9 9 / t r 5 . p n g " > < / d i v > 
 
 
 
 < s c r i p t   L A N G U A G E = " J a v a S c r i p t " > 
 
 < ! - - 
 
 v a r   n D o t s   =   7 ; 
 
 v a r   X b p o s   =   0 ; 
 
 v a r   Y b p o s   =   0 ; 
 
 
 
 / /   f i x e d   t i m e   s t e p ,   n o   r e l a t i o n   t o   r e a l   t i m e 
 
 v a r   D E L T A T   =   . 0 1 ; 
 
 / /   s i z e   o f   o n e   s p r i n g   i n   p i x e l s 
 
 v a r   S E G L E N   =   1 0 ; 
 
 / /   s p r i n g   c o n s t a n t ,   s t i f f n e s s   o f   s p r i n g s 
 
 v a r   S P R I N G K   =   1 0 ; 
 
 / /   a l l   t h e   p h y s i c s   i s   b o g u s ,   j u s t   p i c k e d   s t u f f   t o   m a k e   i t   l o o k   o k a y 
 
 v a r   M A S S   =   1 ; 
 
 / /   P o s i t i v e   X G R A V I T Y   p u l l s   r i g h t ,   n e g a t i v e   p u l l s   l e f t 
 
 / /   P o s i t i v e   Y G R A V I T Y   p u l l s   d o w n ,   n e g a t i v e   u p 
 
 v a r   X G R A V I T Y   =   0 ; 
 
 v a r   Y G R A V I T Y   =   5 0 ; 
 
 / /   R E S I S T A N C E   d e t e r m i n e s   a   s l o w i n g   f o r c e   p r o p o r t i o n a l   t o   v e l o c i t y 
 
 v a r   R E S I S T A N C E   =   1 0 ; 
 
 / /   s t o p p i n g   c r i t e r e a   t o   p r e v e n t   e n d l e s s   j i t t e r i n g 
 
 / /   d o e s n ' t   w o r k   w h e n   s i t t i n g   o n   b o t t o m   s i n c e   f l o o r 
 
 / /   d o e s n ' t   p u s h   b a c k   s o   a c c e l e r a t i o n   a l w a y s   a s   b i g 
 
 / /   a s   g r a v i t y 
 
 v a r   S T O P V E L   =   0 . 1 ; 
 
 v a r   S T O P A C C   =   0 . 1 ; 
 
 v a r   D O T S I Z E   =   1 1 ; 
 
 / /   B O U N C E   i s   p e r c e n t   o f   v e l o c i t y   r e t a i n e d   w h e n   
 
 / /   b o u n c i n g   o f f   a   w a l l 
 
 v a r   B O U N C E   =   0 . 7 5 ; 
 
 
 
 v a r   i s N e t s c a p e   =   n a v i g a t o r . a p p N a m e = = " N e t s c a p e " ; 
 
 
 
 / /   a l w a y s   o n   f o r   n o w ,   c o u l d   b e   p l a y e d   w i t h   t o 
 
 / /   l e t   d o t s   f a l l   t o   b o t t o n ,   g e t   t h r o w n ,   e t c . 
 
 v a r   f o l l o w m o u s e   =   t r u e ; 
 
 v a r   d o t s   =   n e w   A r r a y ( ) ; 
 
 
 
 i n i t ( ) ; 
 
 
 
 f u n c t i o n   i n i t ( ) 
 
 { 
 
         v a r   i   =   0 ; 
 
         f o r   ( i   =   0 ;   i   <   n D o t s ;   i + + )   { 
 
                 d o t s [ i ]   =   n e w   d o t ( i ) ; 
 
         } 
 
         
 
         i f   ( ! i s N e t s c a p e )   { 
 
                 / /   I   o n l y   k n o w   h o w   t o   r e a d   t h e   l o c a t i o n s   o f   t h e   
 
                 / /   < L I >   i t e m s   i n   I E 
 
                 / / s k i p   t h i s   f o r   n o w 
 
                 / / s e t I n i t P o s i t i o n s ( d o t s ) 
 
         } 
 
         
 
         / /   s e t   t h e i r   p o s i t i o n s 
 
         f o r   ( i   =   0 ;   i   <   n D o t s ;   i + + )   { 
 
                 d o t s [ i ] . o b j . l e f t   =   d o t s [ i ] . X ; 
 
                 d o t s [ i ] . o b j . t o p   =   d o t s [ i ] . Y ; 
 
         } 
 
         
 
         
 
         i f   ( i s N e t s c a p e )   { 
 
                 / /   s t a r t   r i g h t   a w a y   s i n c e   t h e y   a r e   p o s i t i o n e d 
 
                 / /   a t   0 ,   0 
 
                 s t a r t a n i m a t e ( ) ; 
 
         }   e l s e   { 
 
                 / /   l e t   d o t s   s i t   t h e r e   f o r   a   f e w   s e c o n d s 
 
                 / /   s i n c e   t h e y ' r e   h i d i n g   o n   t h e   r e a l   b u l l e t s 
 
                 s e t T i m e o u t ( " s t a r t a n i m a t e ( ) " ,   1 0 ) ; 
 
         } 
 
 } 
 
 
 
 f u n c t i o n   d o t ( i )   
 
 { 
 
         t h i s . X   =   X b p o s ; 
 
         t h i s . Y   =   Y b p o s ; 
 
         t h i s . d x   =   0 ; 
 
         t h i s . d y   =   0 ; 
 
         i f   ( i s N e t s c a p e )   { 	 
 
                 t h i s . o b j   =   e v a l ( " d o c u m e n t . a d o t "   +   i ) ; 
 
         }   e l s e   { 
 
                 t h i s . o b j   =   e v a l ( " a d o t "   +   i   +   " . s t y l e " ) ; 
 
         } 
 
 } 
 
 
 
 f u n c t i o n   s t a r t a n i m a t e ( )   { 	 
 
         s e t I n t e r v a l ( " a n i m a t e ( ) " ,   2 0 ) ; 
 
 } 
 
 
 
 / /   T h i s   i s   t o   l i n e   u p   t h e   b u l l e t s   w i t h   a c t u a l   L I   t a g s   o n   t h e   p a g e 
 
 / /   H a d   t o   a d d   - D O T S I Z E   t o   X   a n d   2 * D O T S I Z E   t o   Y   f o r   I E   5 ,   n o t   s u r e   w h y 
 
 / /   S t i l l   d o e s n ' t   w o r k   g r e a t 
 
 f u n c t i o n   s e t I n i t P o s i t i o n s ( d o t s ) 
 
 { 
 
         / /   i n i t i a l i z e   d o t   p o s i t i o n s   t o   b e   o n   t o p   
 
         / /   o f   t h e   b u l l e t s   i n   t h e   < u l > 
 
         v a r   s t a r t l o c   =   d o c u m e n t . a l l . t a g s ( " L i " ) ; 
 
         v a r   i   =   0 ; 
 
         f o r   ( i   =   0 ;   i   <   s t a r t l o c . l e n g t h   & &   i   <   ( n D o t s   -   1 ) ;   i + + )   { 
 
                 d o t s [ i + 1 ] . X   =   s t a r t l o c [ i ] . o f f s e t L e f t   +   s t a r t l o c [ i ] . o f f s e t P a r e n t . o f f s e t L e f t   -   D O T S I Z E ; 
 
                 d o t s [ i + 1 ] . Y   =   s t a r t l o c [ i ] . o f f s e t T o p   +   s t a r t l o c [ i ] . o f f s e t P a r e n t . o f f s e t T o p   +   2 * D O T S I Z E ; 
 
         } 
 
         / /   p u t   0 t h   d o t   a b o v e   1 s t   ( i t   i s   h i d d e n ) 
 
         d o t s [ 0 ] . X   =   d o t s [ 1 ] . X ; 
 
         d o t s [ 0 ] . Y   =   d o t s [ 1 ] . Y   -   S E G L E N ; 
 
 } 
 
 
 
 / /   j u s t   s a v e   m o u s e   p o s i t i o n   f o r   a n i m a t e ( )   t o   u s e 
 
 f u n c t i o n   M o v e H a n d l e r ( e ) 
 
 { 
 
         X b p o s   =   e . p a g e X ; 
 
         Y b p o s   =   e . p a g e Y ; 	     
 
         r e t u r n   t r u e ; 
 
 } 
 
 
 
 / /   j u s t   s a v e   m o u s e   p o s i t i o n   f o r   a n i m a t e ( )   t o   u s e 
 
 f u n c t i o n   M o v e H a n d l e r I E ( )   { 
 
         X b p o s   =   w i n d o w . e v e n t . x   +   d o c u m e n t . b o d y . s c r o l l L e f t ; 
 
         Y b p o s   =   w i n d o w . e v e n t . y   +   d o c u m e n t . b o d y . s c r o l l T o p ; 	     
 
 } 
 
 
 
 i f   ( i s N e t s c a p e )   { 
 
         d o c u m e n t . c a p t u r e E v e n t s ( E v e n t . M O U S E M O V E ) ; 
 
         d o c u m e n t . o n M o u s e M o v e   =   M o v e H a n d l e r ; 
 
 }   e l s e   { 
 
         d o c u m e n t . o n m o u s e m o v e   =   M o v e H a n d l e r I E ; 
 
 } 
 
 
 
 f u n c t i o n   v e c ( X ,   Y ) 
 
 { 
 
         t h i s . X   =   X ; 
 
         t h i s . Y   =   Y ; 
 
 } 
 
 
 
 / /   a d d s   f o r c e   i n   X   a n d   Y   t o   s p r i n g   f o r   d o t [ i ]   o n   d o t [ j ] 
 
 f u n c t i o n   s p r i n g F o r c e ( i ,   j ,   s p r i n g ) 
 
 { 
 
         v a r   d x   =   ( d o t s [ i ] . X   -   d o t s [ j ] . X ) ; 
 
         v a r   d y   =   ( d o t s [ i ] . Y   -   d o t s [ j ] . Y ) ; 
 
         v a r   l e n   =   M a t h . s q r t ( d x * d x   +   d y * d y ) ; 
 
         i f   ( l e n   >   S E G L E N )   { 
 
                 v a r   s p r i n g F   =   S P R I N G K   *   ( l e n   -   S E G L E N ) ; 
 
                 s p r i n g . X   + =   ( d x   /   l e n )   *   s p r i n g F ; 
 
                 s p r i n g . Y   + =   ( d y   /   l e n )   *   s p r i n g F ; 
 
         } 
 
 } 
 
 
 
 
 
 f u n c t i o n   a n i m a t e ( )   { 	 
 
         / /   d o t s [ 0 ]   f o l l o w s   t h e   m o u s e , 
 
         / /   t h o u g h   n o   d o t   i s   d r a w n   t h e r e 
 
         v a r   s t a r t   =   0 ; 
 
         i f   ( f o l l o w m o u s e )   { 
 
                 d o t s [ 0 ] . X   =   X b p o s ; 
 
                 d o t s [ 0 ] . Y   =   Y b p o s ; 	 
 
                 s t a r t   =   1 ; 
 
         } 
 
         
 
         f o r   ( i   =   s t a r t   ;   i   <   n D o t s ;   i + +   )   { 
 
                 
 
                 v a r   s p r i n g   =   n e w   v e c ( 0 ,   0 ) ; 
 
                 i f   ( i   >   0 )   { 
 
                         s p r i n g F o r c e ( i - 1 ,   i ,   s p r i n g ) ; 
 
                 } 
 
                 i f   ( i   <   ( n D o t s   -   1 ) )   { 
 
                         s p r i n g F o r c e ( i + 1 ,   i ,   s p r i n g ) ; 
 
                 } 
 
                 
 
                 / /   a i r   r e s i s i t a n c e / f r i c t i o n 
 
                 v a r   r e s i s t   =   n e w   v e c ( - d o t s [ i ] . d x   *   R E S I S T A N C E , 
 
                         - d o t s [ i ] . d y   *   R E S I S T A N C E ) ; 
 
                 
 
                 / /   c o m p u t e   n e w   a c c e l ,   i n c l u d i n g   g r a v i t y 
 
                 v a r   a c c e l   =   n e w   v e c ( ( s p r i n g . X   +   r e s i s t . X ) / M A S S   +   X G R A V I T Y , 
 
                         ( s p r i n g . Y   +   r e s i s t . Y ) /   M A S S   +   Y G R A V I T Y ) ; 
 
                 
 
                 / /   c o m p u t e   n e w   v e l o c i t y 
 
                 d o t s [ i ] . d x   + =   ( D E L T A T   *   a c c e l . X ) ; 
 
                 d o t s [ i ] . d y   + =   ( D E L T A T   *   a c c e l . Y ) ; 
 
                 
 
                 / /   s t o p   d e a d   s o   i t   d o e s n ' t   j i t t e r   w h e n   n e a r l y   s t i l l 
 
                 i f   ( M a t h . a b s ( d o t s [ i ] . d x )   <   S T O P V E L   & & 
 
                         M a t h . a b s ( d o t s [ i ] . d y )   <   S T O P V E L   & & 
 
                         M a t h . a b s ( a c c e l . X )   <   S T O P A C C   & & 
 
                         M a t h . a b s ( a c c e l . Y )   <   S T O P A C C )   { 
 
                         d o t s [ i ] . d x   =   0 ; 
 
                         d o t s [ i ] . d y   =   0 ; 
 
                 } 
 
                 
 
                 / /   m o v e   t o   n e w   p o s i t i o n 
 
                 d o t s [ i ] . X   + =   d o t s [ i ] . d x ; 
 
                 d o t s [ i ] . Y   + =   d o t s [ i ] . d y ; 
 
                 
 
                 / /   g e t   s i z e   o f   w i n d o w 
 
                 v a r   h e i g h t ,   w i d t h ; 
 
                 i f   ( i s N e t s c a p e )   { 
 
                         h e i g h t   =   w i n d o w . i n n e r H e i g h t   +   w i n d o w . p a g e Y O f f s e t ; 
 
                         w i d t h   =   w i n d o w . i n n e r W i d t h   +   w i n d o w . p a g e X O f f s e t ; 
 
                 }   e l s e   { 	 
 
                         h e i g h t   =   d o c u m e n t . b o d y . c l i e n t H e i g h t   +   d o c u m e n t . b o d y . s c r o l l T o p ; 
 
                         w i d t h   =   d o c u m e n t . b o d y . c l i e n t W i d t h   +   d o c u m e n t . b o d y . s c r o l l L e f t ; 
 
                 } 
 
                 
 
                 / /   b o u n c e   o f f   3   w a l l s   ( l e a v e   c e i l i n g   o p e n ) 
 
                 i f   ( d o t s [ i ] . Y   > =     h e i g h t   -   D O T S I Z E   -   1 )   { 
 
                         i f   ( d o t s [ i ] . d y   >   0 )   { 
 
                                 d o t s [ i ] . d y   =   B O U N C E   *   - d o t s [ i ] . d y ; 
 
                         } 
 
                         d o t s [ i ] . Y   =   h e i g h t   -   D O T S I Z E   -   1 ; 
 
                 } 
 
                 i f   ( d o t s [ i ] . X   > =   w i d t h   -   D O T S I Z E )   { 
 
                         i f   ( d o t s [ i ] . d x   >   0 )   { 
 
                                 d o t s [ i ] . d x   =   B O U N C E   *   - d o t s [ i ] . d x ; 
 
                         } 
 
                         d o t s [ i ] . X   =   w i d t h   -   D O T S I Z E   -   1 ; 
 
                 } 
 
                 i f   ( d o t s [ i ] . X   <   0 )   { 
 
                         i f   ( d o t s [ i ] . d x   <   0 )   { 
 
                                 d o t s [ i ] . d x   =   B O U N C E   *   - d o t s [ i ] . d x ; 
 
                         } 
 
                         d o t s [ i ] . X   =   0 ; 
 
                 } 
 
                 
 
                 / /   m o v e   i m g   t o   n e w   p o s i t i o n 
 
                 d o t s [ i ] . o b j . l e f t   =   d o t s [ i ] . X ; 	 	 	 
 
                 d o t s [ i ] . o b j . t o p   =     d o t s [ i ] . Y ; 	 	 
 
         } 
 
 } 
 
 
 
   - - > 
 
 < / s c r i p t > 
 
 < s t y l e > 
 
 < ! - - 
 
 B O D Y   { S C R O L L B A R - F A C E - C O L O R :   # 0 0 0 0 0 0 ;   S C R O L L B A R - H I G H L I G H T - C O L O R :   # 0 0 0 0 0 0 ;   S C R O L L B A R - S H A D O W - C O L O R :   # 0 0 0 0 0 0 ;   S C R O L L B A R - 3 D L I G H T - C O L O R :   # F F 0 0 0 0 ;   S C R O L L B A R - A R R O W - C O L O R :     # F F 0 0 0 0 ;   S C R O L L B A R - T R A C K - C O L O R :   # 0 0 0 0 0 0 ;   S C R O L L B A R - D A R K S H A D O W - C O L O R :   # F F 0 0 0 0 ;   } 
 
 - - > 
 
 < / s t y l e > 
 
 < s c r i p t   l a n g u a g e = " J a v a S c r i p t 1 . 2 " > 
 
 v a r   s n o w s r c = " h t t p : / / i m g 8 1 3 . i m a g e s h a c k . u s / i m g 8 1 3 / 2 9 2 7 / t u r k e y 1 . p n g "   ; 
 
 v a r   n o   =   1 0 ; 
 
 v a r   n s 4 u p   =   ( d o c u m e n t . l a y e r s )   ?   1   :   0 ; 
 
 v a r   i e 4 u p   =   ( d o c u m e n t . a l l )   ?   1   :   0 ; 
 
 v a r   d x ,   x p ,   y p ; 
 
 v a r   a m ,   s t x ,   s t y ; 
 
 v a r   i ,   d o c _ w i d t h   =   8 0 0 ,   d o c _ h e i g h t   =   6 0 0 ; 
 
 i f   ( n s 4 u p )   { 
 
 d o c _ w i d t h   =   s e l f . i n n e r W i d t h ; 
 
 d o c _ h e i g h t   =   s e l f . i n n e r H e i g h t ; 
 
 }   e l s e   i f   ( i e 4 u p )   { 
 
 d o c _ w i d t h   =   d o c u m e n t . b o d y . c l i e n t W i d t h ; 
 
 d o c _ h e i g h t   =   d o c u m e n t . b o d y . c l i e n t H e i g h t ; 
 
 } 
 
 d x   =   n e w   A r r a y ( ) ; 
 
 x p   =   n e w   A r r a y ( ) ; 
 
 y p   =   n e w   A r r a y ( ) ; 
 
 a m   =   n e w   A r r a y ( ) ; 
 
 s t x   =   n e w   A r r a y ( ) ; 
 
 s t y   =   n e w   A r r a y ( ) ; 
 
 f o r   ( i   =   0 ;   i   <   n o ;   + +   i )   {     
 
 d x [ i ]   =   0 ; 
 
 x p [ i ]   =   M a t h . r a n d o m ( ) * ( d o c _ w i d t h - 5 0 ) ; 
 
 y p [ i ]   =   M a t h . r a n d o m ( ) * d o c _ h e i g h t ; 
 
 a m [ i ]   =   M a t h . r a n d o m ( ) * 2 0 ; 
 
 s t x [ i ]   =   0 . 0 2   +   M a t h . r a n d o m ( ) / 1 0 ; 
 
 s t y [ i ]   =   0 . 7   +   M a t h . r a n d o m ( ) ; 
 
 i f   ( n s 4 u p )   { 
 
 i f   ( i   = =   0 )   { 
 
 d o c u m e n t . w r i t e ( " < l a y e r   n a m e = \ " d o t " +   i   + " \ "   l e f t = \ " 1 5 \ "   t o p = \ " 1 5 \ "   v i s i b i l i t y = \ " s h o w \ " > < i m g   s r c = ' " + s n o w s r c + " '   b o r d e r = \ " 0 \ " > < / l a y e r > " ) ; 
 
 }   e l s e   { 
 
 d o c u m e n t . w r i t e ( " < l a y e r   n a m e = \ " d o t " +   i   + " \ "   l e f t = \ " 1 5 \ "   t o p = \ " 1 5 \ "   v i s i b i l i t y = \ " s h o w \ " > < i m g   s r c = ' " + s n o w s r c + " '   b o r d e r = \ " 0 \ " > < / l a y e r > " ) ; 
 
 } 
 
 }   e l s e   i f   ( i e 4 u p )   { 
 
 i f   ( i   = =   0 )   { 
 
 d o c u m e n t . w r i t e ( " < d i v   i d = \ " d o t " +   i   + " \ "   s t y l e = \ " P O S I T I O N :   a b s o l u t e ;   Z - I N D E X :   " +   i   + " ;   V I S I B I L I T Y :   v i s i b l e ;   T O P :   1 5 p x ;   L E F T :   1 5 p x ; \ " > < i m g   s r c = ' " + s n o w s r c + " '   b o r d e r = \ " 0 \ " > < / d i v > " ) ; 
 
 }   e l s e   { 
 
 d o c u m e n t . w r i t e ( " < d i v   i d = \ " d o t " +   i   + " \ "   s t y l e = \ " P O S I T I O N :   a b s o l u t e ;   Z - I N D E X :   " +   i   + " ;   V I S I B I L I T Y :   v i s i b l e ;   T O P :   1 5 p x ;   L E F T :   1 5 p x ; \ " > < i m g   s r c = ' " + s n o w s r c + " '   b o r d e r = \ " 0 \ " > < / d i v > " ) ; 
 
 } 
 
 } 
 
 } 
 
 f u n c t i o n   s n o w N S ( )   {   
 
 f o r   ( i   =   0 ;   i   <   n o ;   + +   i )   { 
 
 y p [ i ]   + =   s t y [ i ] ; 
 
 i f   ( y p [ i ]   >   d o c _ h e i g h t - 5 0 )   { 
 
 x p [ i ]   =   M a t h . r a n d o m ( ) * ( d o c _ w i d t h - a m [ i ] - 3 0 ) ; 
 
 y p [ i ]   =   0 ; 
 
 s t x [ i ]   =   0 . 0 2   +   M a t h . r a n d o m ( ) / 1 0 ; 
 
 s t y [ i ]   =   0 . 7   +   M a t h . r a n d o m ( ) ; 
 
 d o c _ w i d t h   =   s e l f . i n n e r W i d t h ; 
 
 d o c _ h e i g h t   =   s e l f . i n n e r H e i g h t ; 
 
 } 
 
 d x [ i ]   + =   s t x [ i ] ; 
 
 d o c u m e n t . l a y e r s [ " d o t " + i ] . t o p   =   y p [ i ] ; 
 
 d o c u m e n t . l a y e r s [ " d o t " + i ] . l e f t   =   x p [ i ]   +   a m [ i ] * M a t h . s i n ( d x [ i ] ) ; 
 
 } 
 
 s e t T i m e o u t ( " s n o w N S ( ) " ,   1 0 ) ; 
 
 } 
 
 f u n c t i o n   s n o w I E ( )   { 
 
 f o r   ( i   =   0 ;   i   <   n o ;   + +   i )   { 
 
 y p [ i ]   + =   s t y [ i ] ; 
 
 i f   ( y p [ i ]   >   d o c _ h e i g h t - 5 0 )   { 
 
 x p [ i ]   =   M a t h . r a n d o m ( ) * ( d o c _ w i d t h - a m [ i ] - 3 0 ) ; 
 
 y p [ i ]   =   0 ; 
 
 s t x [ i ]   =   0 . 0 2   +   M a t h . r a n d o m ( ) / 1 0 ; 
 
 s t y [ i ]   =   0 . 7   +   M a t h . r a n d o m ( ) ; 
 
 d o c _ w i d t h   =   d o c u m e n t . b o d y . c l i e n t W i d t h ; 
 
 d o c _ h e i g h t   =   d o c u m e n t . b o d y . c l i e n t H e i g h t ; 
 
 } 
 
 d x [ i ]   + =   s t x [ i ] ; 
 
 d o c u m e n t . a l l [ " d o t " + i ] . s t y l e . p i x e l T o p   =   y p [ i ] ; 
 
 d o c u m e n t . a l l [ " d o t " + i ] . s t y l e . p i x e l L e f t   =   x p [ i ]   +   a m [ i ] * M a t h . s i n ( d x [ i ] ) ; 
 
 } 
 
 s e t T i m e o u t ( " s n o w I E ( ) " ,   2 0 ) ; 
 
 } 
 
 i f   ( n s 4 u p )   { 
 
 s n o w N S ( ) ; 
 
 }   e l s e   i f   ( i e 4 u p )   { 
 
 s n o w I E ( ) ; 
 
 } 
 
 < / s c r i p t > 
 
 
 
 < d i v   i d = " i m a g e 1 1 "   s t y l e = " p o s i t i o n : a b s o l u t e ;   o v e r f l o w : h i d d e n ;   l e f t : 4 6 2 p x ;   t o p : 4 5 p x ;   w i d t h : 1 0 0 p x ;   h e i g h t : 1 0 0 p x ;   z - i n d e x : 1 8 " > < i m g   s r c = " h t t p : / / i m g 8 2 0 . i m a g e s h a c k . u s / i m g 8 2 0 / 5 1 0 4 / k a l p s i z k i r m i z i d u n y a . g i f "   b o r d e r = 0   w i d t h = 1 0 0   h e i g h t = 1 0 0 > < / d i v > 
 
 
 
 
 
 < / d i v > 
 
 < / b o d y > 
 
 < / h t m l > 
 
 